package com.example.RemindMe;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;


/**
 * Created by Merip on 04.12.13.
 */
public class AboutActivity extends RemindMe {




    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView (R.layout.activity_about);
        setTitleFromActivityLabel(R.id.title_text);
        //finish();
    }


    public void goToFH (View view) {


       //Uri uriUrl = Uri.parse("https://www.fh-joanneum.at/");
       //Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);
      // startActivity(launchBrowser);




    }

    public void onClickFH (View v)
    {
        int id = v.getId ();
        switch (id) {
            case R.id.fh_button:
                Intent intent = new Intent();
                intent.setAction(Intent.ACTION_VIEW);
                intent.addCategory(Intent.CATEGORY_BROWSABLE);
                intent.setData(Uri.parse("https://www.fh-joanneum.at/"));
                startActivity(intent);

                //geändert
                finish();


                break;
            default:
                break;
        }
    }





    @Override
    public void onClickSearch(View v) {
        super.onClickSearch(v);
        finish();
    }

    @Override
    public void onClickAbout(View v) {
        super.onClickAbout(v);
        finish();
    }

    @Override
    public void goHome(Context context) {
        super.goHome(context);
        finish();
    }

    @Override
    public void setTitleFromActivityLabel(int textViewId) {
        super.setTitleFromActivityLabel(textViewId);
    }

    @Override
    public void toast(String msg) {
        super.toast(msg);
    }

    @Override
    public void trace(String msg) {
        super.trace(msg);
    }
}